<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
 <base href="<%=basePath%>">
<meta charset="UTF-8">
<title>Insert title here</title>
<style type="text/css">
td{text-align: center;height:50px;border:1px solid white;}
a{text-decoration: none;color:red;font-weight: bold;}
td{background-color: #ececec;}
.one{background-color: rgb(100,162,189);color:white;}
table{width:80%;margin: 0 auto;}
</style>
</head>
<body>
<a href="AdminSelectType1"  target="admin" style="color:black">添加动物</a>
<a href="jsp/admin/AddType.jsp"  target="admin" style="color:black">添加品种</a>
<a href="AdminSelectType" target="admin" style="color:black">动物品种</a>
<table cellpadding="0" cellspacing="0" >
<tr><td class="one">动物名称</td><td>动物品种</td><td>动物介绍</td><td>操作</td></tr>
<c:forEach items="${list}" var="Pet">
<Tr>
    <td class="one">${Pet.pname }</td>
     <td>${Pet.tname}</td>
       <td>${Pet.detail }</td>
       <td style="width:200px;"><a href="AdminDeletePet?pid=${Pet.pid}">删除</a>
       <a href="AdminSelectPetById?pid=${Pet.pid}">编辑</a></td>
</Tr>
</c:forEach>
</table>
<h1 style="color:red;">${mess}</h1>
</body>
</html>